home *** CD-ROM | disk | FTP | other *** search
- *DEPPRINT.CMD FILE
- *Prints valid deposits in the GetDep file as part of the Deposits file.
-
-
- @ 5,10 SAY 'To print the deposits you just entered,'
- @ 6,10 SAY 'press <Return>.'
- ? CHR(7)
- WAIT
- SET PRINT ON
- ? 'DATE PAID BY AMOUNT INV NO. COMMENTS:'
- ?
- GO TOP
- STORE 0 TO Count
- DO WHILE .NOT. EOF
- DISPLAY OFF Dep:Date, Payer, Deposit, Inv:Nmbr, Comments FOR .NOT. *
- SKIP
- STORE Count+1 TO Count
- IF Count=10
- STORE 0 TO Count
- WAIT
- ENDIF
- ENDDO
- SUM Deposit TO Temp
- ?
- ? ' The total deposit is ' + STR(Temp,9,2)
- ?
- ?' The final balance is ' + STR(Mbalance,9,2)
- ?
- SET PRINT OFF
-
- RELEASE Count, Temp
- RETURN
- osit is ' + STR(Temp,9,2)
- ?
- ?' The final balance is ' + STR(Mbalance,9,2)
- ?
- SET PRINT OFF
-
- REontinue
-
- DO GetDate
-
- DELECT PRIMARY
- USE B:Deposits
- COPY STRUCTURE TO GetDep
-
- USE GetDep
- STORE 'Y' TO Depositing
- DO WHILE !(Depositing) <>'F'
- APPEND BLANK
- STORE STR(#,5) TO Number
- REPLACE Dep:Date WITH Date
-
-
- ERASE
- *Nextecessary so
- *that we can compare each record in the GetDep file against all of the
- *records in the Invoices file.
- DO DepTrans
- USE B:Deposits
- APPEND FROM GetDep
- ENDIF there are deposits to add to the file
-
- DELETE FILE GetDep
- RELEASE All
- RETURN
- SE B:Deposits
- APPEND FROM GetDep
- ENDIF there are deposits to add to the file
-
- DELETE FILE GetDepEPLACE Marker WITH 'Q'
-
- * If it's the end of the year, we total all the quarterly amounts to
- * a